﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Subtle.Domain.Models;

namespace Subtle.ViewModels
{
	/// <summary>
	/// User Configure View Model
	/// </summary>
	public class UserConfigureViewModel
	{
		[Required]
		[Display(Name = "User name")]
		public string Username { get; set; }

		[Required]
		[Display(Name = "Password")]
		public string Password { get; set; }

		[Required]
		[Display(Name = "Confirm Password")]
		public string ConfirmPassword { get; set; }

		[Required]
		[Display(Name = "Tell us a little more about yourself")]
		public string About { get; set; }

		/// <summary>
		/// Get User
		/// </summary>
		/// <returns></returns>
		public User GetUser()
		{
			var user = new User();
			AutoMapper.Mapper.Map<UserConfigureViewModel, User>(this, user);
			return user;
		}
	}
}